//
//  XYChatViewController.h
//  十年少
//
//  Created by 尧的mac on 15/11/28.
//  Copyright © 2015年 xxy.icom. All rights reserved.
//

#import "WLMessages.h"

@implementation WLMessages

+(instancetype)messagesWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

-(instancetype)initWithDict:(NSDictionary *)dict
{

    if (self = [super init]) {
        
        self.text = dict[@"text"];
        self.type = [dict[@"type"] intValue];
    }
    return self;
}
@end
